<!doctype html>
<html lang="en">
 <head>
  <meta charset="UTF-8">
  <meta name="Generator" content="EditPlus®">
  <meta name="Author" content="">
  <meta name="Keywords" content="">
  <meta name="Description" content="">
  <title>Document</title>
 </head>
 <body>
   <script>
      var x = parseInt(window.prompt("请输入第一个数"));
	  var y = parseInt(window.prompt("请输入第二个数"));
	  var z = parseInt(window.prompt("请输入第三个数"));
	  var max = 0,mid = 0, min = 0;
	  if(x > y){  
	     if(x > z){
		    max = x;
			if(y > z){
			  mid = y;
			  min = z;
			}else{
			  mid = z;
              min = y;
			}
		 }else{
		  max = z;
		  mid = x;
		  min = y;
		 }    
	  }else{  //x < y;
	    if(x < z){
		   min = x;
		   if(y > z){
		      max = y;
			  mid = z;
		   }else{
		      max = z;
			  mid = y;
		   }
		}else{   //x < y ;x > z
		   max = y;
		   mid = x;
		   min  =z;
		}
	  }
	  var sum = (max * 100) + (mid * 10) + min;
	  alert("输入的"+x+","+y+","+z+"组成的最大三位数是："+sum);
   </script>
 </body>
</html>
